package cn.yh.shop.user.service.impl;

import java.util.HashMap;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.yh.shop.user.dao.UserCouponDao;
import cn.yh.shop.user.service.IUserCouponService;
@Service
public class UserCouponServiceImpl implements IUserCouponService {

	@Autowired
	private UserCouponDao usercoupondao;
	@Override
	public boolean addCoupons(HashMap<String, String> map) {
		boolean b=false;
		int i =usercoupondao.insertCoupons(map);
		if(i>0){
			b=true;
		}else{
			b=false;
		}
		return b;
	}

}
